<!--
 * @Author: @xiaonancheng
 * @Date: 2023-03-06 10:23:05
 * https://www.cnblogs.com/xiaonancheng
 * Copyright (c) 2023 by @xiaonancheng, All Rights Reserved. 
-->

{% extends "user_base.html" %}
{% block title %}
论坛
{% endblock %}

{% block subtitle %}
论坛
{% endblock %}


{% block main %}论坛{% endblock %}

{% block content %}
<section class="section dashboard">
    <div class="row">

        <!-- Left side columns -->
        <div class="col-lg-12">
            <div class="row">
                <div class="card">
                    <div >{{post.post_title}}</div>
                    <div>{{post.post_content}}</div>
                    <div>评论</div>
                    {% for c in comments %}
                    <div style="background-color: aliceblue;margin-bottom: 10px">
                        <div class="col-md-4">{{c.u_id.user_name}}</div>
                        <div class="col-md-8">
                            <p>{{c.content}}</p>
                            <span>{{c.c_time}}</span>
                        </div>
                    </div>
                    {% endfor %}
                </div>
            </div>
        </div>
    </div>

</section>


{% endblock %}